::@echo off
:: %1 - Target folder where a new CommonSource folder will be created and all the files present here will be copied to it as hardlinks
if not exist "%~1\CommonSource" md "%~1\CommonSource"
for /R %%a in (*.*) do (
	if
	fsutil hardlink create "%~1\CommonSource\%%~nxa" "%%a"
)
pause